Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Fix duplicate tag bug, error message specificity issue and standardize messages for notes feature #208

Merged
merged 6 commits into from
Nov 11, 2023

Conversation

limjunxian1
Copy link

@limjunxian1 limjunxian1 commented Nov 7, 2023

Closes #145, and addresses the invalid index in #196 for addalt, edit and delete and notes feature. It also fixes a bug that a photo is removed when edit command is executed due to the changes made to how photo is rendered for each person.

In addition, closes #181 and closes #193

@limjunxian1 limjunxian1 added this to the v1.4 milestone Nov 7, 2023
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (ada8718) 82.50% compared to head (fe7bc0a) 82.69%.
Report is 25 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #208      +/-   ##
============================================
+ Coverage     82.50%   82.69%   +0.18%     
- Complexity      753      758       +5     
============================================
  Files            99       99              
  Lines          2327     2329       +2     
  Branches        261      264       +3     
============================================
+ Hits           1920     1926       +6     
+ Misses          339      335       -4     
  Partials         68       68              
Files Coverage Δ
...in/java/seedu/address/commons/util/StringUtil.java 95.45% <100.00%> (-0.38%) ⬇️
src/main/java/seedu/address/logic/Messages.java 87.50% <ø> (ø)
...a/seedu/address/logic/commands/AddNoteCommand.java 94.44% <100.00%> (ø)
...java/seedu/address/logic/commands/EditCommand.java 94.48% <100.00%> (+0.04%) ⬆️
...eedu/address/logic/parser/AddAltCommandParser.java 100.00% <100.00%> (ø)
...edu/address/logic/parser/AddNoteCommandParser.java 100.00% <100.00%> (ø)
...eedu/address/logic/parser/DeleteCommandParser.java 100.00% <100.00%> (ø)
.../seedu/address/logic/parser/EditCommandParser.java 94.28% <100.00%> (-0.46%) ⬇️
.../address/logic/parser/RemoveNoteCommandParser.java 100.00% <100.00%> (ø)
src/main/java/seedu/address/model/tag/Tag.java 100.00% <100.00%> (+19.04%) ⬆️
... and 1 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@limjunxian1 limjunxian1 changed the title Fix duplicate tag bug and invalid index error message Fix duplicate tag bug and error message specificity issue Nov 9, 2023
@limjunxian1 limjunxian1 changed the title Fix duplicate tag bug and error message specificity issue Fix duplicate tag bug, error message specificity issue and standardize messages for notes feature Nov 9, 2023
Copy link

@lordidiot lordidiot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for working on this! Very thorough changes.

Balance balance = personToEdit.getBalance();

Person updatedPerson = new Person(updatedName, updatedPhone, updatedEmail, updatedAddress, updatedBirthday,
updatedLinkedin, updatedSecondaryEmail, updatedTelegram, updatedTags, id, notes, balance);
updatedLinkedin, updatedSecondaryEmail, updatedTelegram, updatedTags, id, avatar, notes, balance);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@limjunxian1 limjunxian1 merged commit 3b24fc0 into AY2324S1-CS2103T-T13-2:master Nov 11, 2023
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants